<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>运城市安全生产隐患排查治理信息系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css"/>
	<script src="<%=basePath%>/js/js.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/addfj.js"></script>
	<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js" defer="defer"></script><base target="_self" />
	<style>
		.menuhidden {display:none;float:none}
		.menuvisible {display:block;float:none}
	</style>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#addMorezg").click(function(){//附件添加	
				addFj('morezg','picFile');
			});
			$("#addMoredoc").click(function(){//附件添加
				addFj('moredoc','docFile');
			});
		});
		function deleFj(id,vname){
			var vids=vname+id;
			$.ajax({
				type:"POST",
				url:"<%=basePath%>/zczb/_deleFj.action?fjId="+id,
				success:function(data){
					if(data=="1"){
						document.getElementById(vids).style.display="none";
					}else{
						alert('删除失败！');
					}		  			
			    }
			});				
		}
	</script>
  </head>
  
 <body>
<div id="allbody">
	<div class="head">
		<iframe src="<%=basePath%>/head.jsp" width="1160" height="218" scrolling="no" frameborder="0" ></iframe>
	</div>
	<div class="con">
		<div class="left">
			<div class="left_info">
				<iframe src="<%=basePath%>/left_info.jsp" width="244" height="250" id="iframeleft_top"  onLoad="iFrameHeight()"  scrolling="no" frameborder="0" ></iframe>
			</div>
			<div class="left_link">
				<iframe src="<%=basePath%>/zczb_left.jsp" width="244" height="200" id="iframeleft_link"  onLoad="iFrameHeight2()" scrolling="no" frameborder="0" ></iframe>
			</div>
		</div>
		<div class="right">
			<div class="right_map">
				<div style="float: left;"><a href="<%=basePath%>/corp/index.action">首页</a> &gt; <span><a href="<%=basePath%>/zczb/_index.action">自查自报</a></span>&gt; <span>未处理隐患</span></div>
				<div class="map_btn">
			  		<input type="button" name="btntj" class="input_link" onclick="window.location.href='<%=basePath%>/zczb/wcl_list.action?hzdId=${hzdId }&cYear=${cYear }'" value="返 回"/>
				</div>
			</div>
			<div class="right_list">
				<form action="<%=basePath%>/zczb/wcl_saveYh.action" name="form1" method="post" enctype="multipart/form-data">
				<table border="0" cellpadding="0" cellspacing="0" align="center" class="infolist">
					<tr>
						<td class="info_tit" width="150" style="border-top:none">隐患类型：</td>
						<td>${yh.yhType1Name }——${yh.yhType2Name }——${yh.yhType3 }——${yh.yhType4 } </td>
					</tr>
					<tr>
						<td class="info_tit">自查标准：</td>
						<td>${yh.yhInfo }</td>
					</tr>
					<tr>
						<td class="info_tit">发现时间：</td>
						<td><s:date name="yh.yhFxTime" format="yyyy-MM-dd"/>
							<input type="hidden" name="fxtime" id="fxtime" value="<s:date name="yh.yhFxTime" format="yyyy-MM-dd"/>">
						</td>
					</tr>
					<tr>
						<td class="info_tit">隐患基本情况：</td>
						<td>${yh.yhQk }</td>
					</tr>
					<s:if test="%{yhType==2}">
						<tr>
							<td class="info_tit">隐患形成详细原因：</td>
							<td><textarea rows="2" cols="45" name="yhXcyy" readonly="readonly">${yh.yhXcyy }</textarea></td>
						</tr>
						<tr>
							<td class="info_tit">影响范围及危害后果：</td>
							<td><textarea rows="2" cols="45" name="yhYxfw" readonly="readonly">${yh.yhYxfw }</textarea></td>
						</tr>
						<tr>
							<td class="info_tit">监控及治理措施：</td>
							<td><textarea rows="2" cols="45" name="yhJkcs" readonly="readonly">${yh.yhJkcs }</textarea></td>
						</tr>
					</s:if>
					<tr>
						<td class="info_tit">整改期限：</td>
						<td><s:date name="yh.yhZgTime" format="yyyy-MM-dd"/></td>
					</tr>
					<tr>
						<td class="info_tit">整改措施：</td>
						<td>
							<s:if test="%{yh.yhZgType==1}">立即整改</s:if>
			     			<s:if test="%{yh.yhZgType==2}">限期整改</s:if>
			     			<s:if test="%{yh.yhZgType==3}">停产停业整顿</s:if>
						</td>
					</tr>
					<tr>
						<td class="info_tit">隐患是否已整改：</td>
						<td><s:radio list="#{'1':'是','0':'否'}" name="yhIsZg" value="%{yh.yhIsZg}" theme="simple"/></td>
					</tr>
					<tr>
						<td class="info_tit">整改完成日期：</td>
						<td><input type="text" name="yhWcTime" value="<s:date name="yh.yhWcTime" format="yyyy-MM-dd"/>" type="text" id="byear1" class="Wdate" onclick="WdatePicker({readOnly:true,minDate:'#F{$dp.$D(\'fxtime\')}'})"/><span class="note4">*</span></td>
					</tr>
					<tr>
						<td class="info_tit">整改责任人：</td>
						<td><input type="text" name="yhGzZrr" value="${yh.yhZgZrr}" id="bitren"/><span class="note4">*</span></td>
					</tr>
					<tr>
						<td class="info_tit">责任人电话：</td>
						<td><input type="text" name="yhZrrTel" value="${yh.yhZrrTel}" id="tel1"/><span class="note4"></span></td>
					</tr>
					<tr>
						<td class="info_tit">隐患整改情况：</td>
						<td><textarea rows="5" cols="60" name="yhZgQk">${yh.yhZgQk }</textarea></td>
					</tr>
					<tr>
						<td class="info_tit">隐患图片：</td>
						<td id="moreyh">
							<s:if test="%{fjList1.size>0}">
								<s:iterator id="fj" value="fjList1">
									<span id="yhfj_${fj.id}">
										<a href="<%=filePath%>/${fj.fjPath }" target="_blank" title="点击查看原图"><img src="<%=filePath%>/${fj.fjPath }" border="0" width="80px" height="80px"></a>
										<a href="javascript:deleFj('${fj.id}','yhfj_')" title="删除"><img src="<%=basePath%>/images/deletex.gif"/></a>
									</span>
								</s:iterator>
							</s:if>
						</td>
					</tr>
					<tr>
						<td class="info_tit">隐患整改后图片：</td>
						<td id="morezg">
							<input type="button" name="fj1" value="添加附件" id="addMorezg" class="link_input"/>
							<s:if test="%{fjList2.size>0}">
								<br/>
								<s:iterator id="fj" value="fjList2">
									<span id="picfj_${fj.id}">
										<a href="<%=filePath%>/${fj.fjPath }" target="_blank" title="点击查看原图"><img src="<%=filePath%>/${fj.fjPath }" border="0" width="80px" height="80px"></a>
										<a href="javascript:deleFj('${fj.id}','picfj_')" title="删除"><img src="<%=basePath%>/images/deletex.gif"/></a>
									</span>
								</s:iterator>
							</s:if>
						</td>
					</tr>
					<s:if test="%{yh.yhType==2}">
						<tr>
							<td class="info_tit">隐患报告：</td>
							<td id="moredoc">
								<input type="button" name="fj2" value="添加附件" id="addMoredoc" class="link_input"/>
								<s:if test="%{fjList3.size>0}">
									<br/>
									<s:iterator id="fj" value="fjList3">
										<span id="docfj_${fj.id}">
											<a href="<%=filePath%>/${fj.fjPath }" target="_blank">${fj.fjTitle }</a>
											<a href="javascript:deleFj('${fj.id}','docfj_')" title="删除"><img src="<%=basePath%>/images/deletex.gif"/></a>
										</span>
									</s:iterator>
								</s:if>
							</td>
						</tr>
					</s:if>
					<tr>
						<td colspan="2"  class="info_tit" style="text-align:center;height:35px;">
							<input type="submit" name="btntj" class="input_link" id="btnSubmit" value="提 交"/>&nbsp;&nbsp;&nbsp;
							<input type="button" name="btnset" onclick="window.location.href='<%=basePath%>/zczb/wcl_yhList.action?hzdId=${hzdId }&cYear=${cYear }'" class="input_link" id="bth1" value="返回列表"/> 
						</td>
					</tr>
				</table>
				<input type="hidden" name="hzdId" value="${hzdId }">
				<input type="hidden" name="yhId" value="${yhId }">
			</form>
			</div>
		</div>
	</div>
	<div class="foot">
		<iframe src="<%=basePath%>/foot.html" width="1160" height="89" scrolling="no" frameborder="0" ></iframe>
	</div>
</div>
</body>
</html>
